package com.px.mbg.model;

import com.px.mbg.base.BaseEntity;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 出库记录表
 * </p>
 *
 * @author 品讯科技
 * @since 2022-01-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="WarehouseOut对象", description="出库记录表")
public class WarehouseOut extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "库存id")
    private Long warehouseId;

    @ApiModelProperty(value = "出库数量")
    private BigDecimal amout;

    @ApiModelProperty(value = "出库人")
    private Long userId;

    @ApiModelProperty(value = "出库时间")
    private LocalDateTime wtime;

    @ApiModelProperty(value = "相关单号")
    private String releaseBh;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "库位id")
    private Long storageId;

    @ApiModelProperty(value = "库存类型; 1->原料,2->半成品,3->成品,4->工具,5->配件")
    private Integer wtype;

    @ApiModelProperty(value = "货品编码")
    private String code;

    @ApiModelProperty(value = "货品名称")
    private String name;

    @ApiModelProperty(value = "货品id")
    private Long goodInfoId;


}
